/*
 * Copyright 2008 Federal Emergency Management Agency
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0 
 *    
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and 
 * limitations under the License. 
 *  
 */
package gov.fema.hazus.bdc.client.hazards.flood.building;

import com.google.gwt.core.client.GWT;

import gov.fema.hazus.bdc.client.common.ui.AbstractClassificationSchemeListBox;
import gov.fema.hazus.bdc.client.hazards.flood.FloodConstants;

public class FloodSubstructureTypeListBox extends AbstractClassificationSchemeListBox {

	private FloodConstants constants;

	public FloodSubstructureTypeListBox()
	{
	
		constants = (FloodConstants)GWT.create(FloodConstants.class);
		
		// add all of the items, if null, set to unknown
		this.addItem(constants.schemaFloodBuildingSubstructureUNKNOWN(), "0 = Unknown");
		this.addItem(constants.schemaFloodBuildingSubstructureSLAB(), "1 = Slab");
		this.addItem(constants.schemaFloodBuildingSubstructureFILL(), "2 = Fill");
		this.addItem(constants.schemaFloodBuildingSubstructureCRAWLSPACE(), "3 = Crawlspace");
		this.addItem(constants.schemaFloodBuildingSubstructureBASEMENT(), "4 = Basement");
		this.addItem(constants.schemaFloodBuildingSubstructureGARDEN(), "5 = Garden Level");
		this.addItem(constants.schemaFloodBuildingSubstructurePIER(), "6 = Pier (Post or Beam)");
		this.addItem(constants.schemaFloodBuildingSubstructureWALL(), "7 = Solid Wall");
		this.addItem(constants.schemaFloodBuildingSubstructurePILE(), "8 = Pile (or Column)");
		this.addItem(constants.schemaFloodBuildingSubstructureNONE(), "9 = None");

	}
}
